
/**
 * 返回项目文件
 */

const fs = require('fs');
const path = require('path');

module.exports = ctx => {
    try {
        const ldteprojectpath = ctx.headers.ldteprojectpath;
        const originalUrl = ctx.originalUrl;
        ctx.response.body = fs.createReadStream(path.join(ldteprojectpath, originalUrl));
    } catch (error) {
        
    }    
}